/*
Copyright (c) 2025 HeZongLun
NahidaProject is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan
PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/

#pragma once

#include "XMLNode.h"

#include <string>

namespace NahidaProject {
	class XMLText : public NahidaProject::XMLNode {
	private:
		std::string content_;

	public:
		explicit XMLText(std::string content) : content_(std::move(content)) {

		}

		const std::string& GetContent() const;
		void GetContent(const std::string& content);
		std::string ToString(int indent = 0) const override;
	};
}